﻿@model MSAcademic.v2.Web.Areas.Admin.Models.User.ChangeProfilePictureViewModel
@{
    ViewBag.Title = "ChangeProfilePicture";
}

<img src="@Url.Content(Model.SignedInUser.ProfilePictureUrl)"/>

@using(Html.BeginForm("DownloadAndSave","User",FormMethod.Post))
{
    <label> Unesi url slike</label>
    @Html.TextBoxFor(m=>m.Url)
    <input type="submit" value="Spremi"/>
}
@using(Html.BeginForm("Upload","User",FormMethod.Post,new{enctype="multipart/form-data"}))
{
    <input type="file" name="picture"/>
    
    <input type="submit" value="Spremi"/>
}

